<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../include/header.jsp" />
<script type="text/javaScript">
<!--
	/* pagination 페이지 링크 function */
	function listPage(){
		$('#viewForm').attr('action', '<c:url value="/user/userList.do"/>');
		$('#viewForm').submit();
	}
	
	function modifyPage(){
		$('#viewForm').attr('action', '<c:url value="/user/userWriteForm.do"/>');
		$('#viewForm').submit();
	}
-->
</script>
<!-- contents s -->
<div class="container" id="container">
	<span class="round lt">&nbsp;</span>
	<span class="round rt">&nbsp;</span>
	<span class="round lb">&nbsp;</span>
	<span class="round rb">&nbsp;</span>
	<div class="container_area">
	<form name="viewForm" id="viewForm" action="<c:url value="/user/userWriteForm.do"/>" method="post">
		<input type="hidden" name="sau_user_id" id="sau_user_id" value="${resultVO.sau_user_id }"/>
		<h2 class="tit_h2">담당자 정보</h2>
			<jsp:include page="../include/navi.jsp" />
			<h3 class="tit_h3">기본 정보</h3>
			<div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
				<table summary="기본 정보 등록 입니다" class="table_write">
					<caption>기본 정보 등록</caption>
					<colgroup> <!-- D : col width로 테이블 넓이 조절 -->
						<col width="18%" />
                           <col width="15%" />
                           <col width="26%" />
                           <col width="15%" />
                           <col width="26%" />
					</colgroup>
					<tbody>
						<tr>
							<th scope="row" rowspan="4" class="bdR table_img">
                               	<div class="table_img_box">
                               		<c:if test="${empty resultVO.sau_user_pic }">
										<img id="imgPreview" src="<c:url value='/htmlRes/images/img_thum02.jpg' />" alt="디폴트 이미지"/>
									</c:if>
									<c:if test="${not empty resultVO.sau_user_pic }">
	                                   	<img id="imgPreview" src="<c:url value='${resultVO.sau_user_pic }' />" />
									</c:if>
								</div>
							</th>
							<th scope="row">이름</th>
							<td class="alL">${resultVO.sau_user_name}</td>
							<th scope="row">이메일</th>
							<td class="alL">${resultVO.sau_user_email}</td>
						</tr>
						<tr>
							<th scope="row">전화번호</th>
							<td class="alL" colspan="3">${resultVO.sau_user_tel}</td>
						</tr>
						<tr>
                           <th scope="row">휴대폰번호</th>
							<td class="alL" colspan="3">${resultVO.sau_user_hp}</td>
						</tr>
						<tr>
							<th scope="row">상태</th>
							<td colspan="3" class="alL">
								<c:if test="${resultVO.sau_flag_yn eq 'Y'}">사용</c:if>
								<c:if test="${resultVO.sau_flag_yn eq 'N'}">삭제</c:if>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<h3 class="tit_h3">자격증</h3>
			<div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
				<table summary="자격증 테이블 입니다" class="table_list">
					<caption>자격증</caption>
					<colgroup> <!-- D : col width로 테이블 넓이 조절 -->
						<col width="40%" />
                           <col width="40%" />
                           <col width="20%" />
					</colgroup>
					<thead>
						<tr>
							<th scope="col">자격증/면허증</th>
                               <th scope="col">발행처/발행기관</th>
                               <th scope="col">취득일</th>
						</tr>
					</thead>
					<tbody>
					<c:if test="${not empty resultVO.userCertVOList}">
						<c:forEach var="result" items="${resultVO.userCertVOList }" varStatus="status"> 
						<tr>
							<td>${result.sac_cert_name }</td>
							<td>${result.sac_cert_publish }</td>
							<td>${result.sac_cert_date }</td>
						</tr>		
						</c:forEach>
					</c:if>
					</tbody>
				</table>
			</div><!--//table_wrap-->
			<h3 class="tit_h3">경력 사항</h3>
			<div class="table_wrap"><!-- D : table은 div table_wrap 싸고감 -->
				<table summary="경력 사항 테이블 입니다" class="table_list">
					<caption>경력 사항</caption>
					<colgroup> <!-- D : col width로 테이블 넓이 조절 -->
						<col width="25%" />
                           <col width="25%" />
                           <col width="50%" />
					</colgroup>
					<thead>
						<tr>
							<th scope="col">기간</th>
                               <th scope="col">회사명</th>
                               <th scope="col">업무내용</th>
						</tr>
					</thead>
					<tbody>
					<c:if test="${not empty resultVO.userCareerVOList}">	
						<c:forEach var="result" items="${resultVO.userCareerVOList }" varStatus="status"> 
					<tr>
						<td>${result.sac_biz_period }</td>
						<td>${result.sac_com_name }</td>
						<td>${result.sac_biz_cont }</td>
					</tr>
						</c:forEach>
					</c:if>
					</tbody>
				</table>
			</div><!--//table_wrap-->
			
			<div class="btn_bbs">
				<a href="<c:url value="/user/userList.do"/>" onclick="listPage();return false;" class="btn_wh">목록</a>
				<a href="<c:url value="/user/userWriteForm.do"/>" onclick="modifyPage();return false;" class="btn_re">수정</a>
			</div>
			<!-- 검색조건 유지 -->
			<input type="hidden" name="pageIndex" id="pageIndex" value="${resultVO.pageIndex }"/>
		</form>
	</div><!--//container_area-->
</div>
<!-- contents e -->
<jsp:include page="../include/footer.jsp" />
